package com.yima.baseproj.module.app.fankui;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yima.baseproj.module.app.fankui.model.AppFankuiAddParamModel;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("app_fankui")
public class AppFankuiEntity extends BaseEntity {

  @ApiModelProperty(value = "用户id，会员生效")
  @TableField(value = "user_id")
  private String userId;

  @ApiModelProperty(value = "内容")
  @TableField(value = "content")
  private String content;

  @ApiModelProperty(value = "图片")
  @TableField(value = "files")
  private String files;

  @ApiModelProperty(value = "用户手机号")
  @TableField(value = "phone")
  private String phone;

  @ApiModelProperty(value = "处理状态：处理成功(SUCCESS),待处理(WAIT)")
  @TableField(value = "state")
  private String state;

  public void setData(AppFankuiAddParamModel paramModel){
    this.content = paramModel.getContent();
    this.files = paramModel.getFiles();
    this.phone = paramModel.getPhone();
  }
}
